package com.DateDemo;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author milian
 * @Date 2021/7/22 0022 15:55
 */
public class dateTimeClass {
    public static void main(String[] args) {
        LocalDateTime data = LocalDateTime.now();
        System.out.println("现在是"+data.getYear()+"年"+data.getMonth().getValue()+"月"
        +data.getDayOfMonth()+"日"+ "星期"+data.getDayOfWeek().getValue());
        DateTimeFormatter.ofPattern("yyyy年MM月dd日");

    }
}
